package org.dval.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import org.dval.plugin.ioc.InjectUtils;

/**
 * @author duai
 * @version V1.0
 * @Title: Ioc_Manager
 * @Package org.dval.interceptor
 * @Description: TODO
 * @date 2017-12-11 16:07
 */
public class InjectInterceptor implements Interceptor {

    @Override
    public void intercept(Invocation invocation) {
        Object target = invocation.getTarget();
        InjectUtils.inject(target);
        invocation.invoke();
    }
}
